package com.gdqy.FCS.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.gdqy.FCS.common.persistence.CrudDao;
import com.gdqy.FCS.common.persistence.annotation.MybatisDao;
import com.gdqy.FCS.entity.Fabric;
import com.gdqy.FCS.entity.FabricApplication;
import com.gdqy.FCS.entity.FabricProduction;

@MybatisDao
public interface FabricDao extends CrudDao<Fabric> {
	public List<Fabric> selectAll(Fabric fabric);
	
	public Fabric selectById(@Param("id")Integer id);
	
	public int deleteById(@Param("id")Integer id);
	
	public int insert(Fabric fabric);
	
	public int update(Fabric fabric);
	
	public int selectCountByProvider_id(int  provider_id);
	
	public List<Fabric> selectByCode(String code);
	
	public List<Fabric> selectByComponent_code(String component_code);
	
	public List<Fabric> selectByComAndWeaCode(Map map);
	
	public List<Fabric> selectFabircByCollected(@Param("id")Integer pid);

	public List<Fabric> selectFabircByReleasetime(@Param("id")Integer pid);
	
	public int selectAllCount();
	
	public List<FabricApplication> selectFabricByAppCode(String production_code);
	
	public List<FabricProduction> selectFabricByProCode(String production_code);
}
